﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucEduSubject.ascx.cs" Inherits="Custom_ucEduSubject" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<link href="../../Common/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../Common/Js/jquery.js"></script>
<script type="text/javascript" src="../../Common/Js/common.js"></script>
<script type="text/javascript" src="../../Common/Js/msg.js"></script>

<script type="text/javascript">
var currSubjectId='';
//设置回调
var funChange;
function setSubjectOnChangeFun(func)
{
    funChange = func;
}
function GetSubjectInfo()
{
    var value = event.srcElement.value;
    currSubjectId = value;
    if(funChange!=null)
    {
        funChange();
    }
//    document.getElementById('txtSubjectId').value = currSubjectId;
//    document.getElementById('btnSelect').click();
}
</script>

<select id="selTerm" onchange="GetSubjectInfo();">
 <asp:Repeater ID="repeatSubject2" runat="server">
    <ItemTemplate>
      <%--  <option value="<%# Eval("RID") %>"><%# Eval("CauseName") %></option>--%>
        <%# GetOption((int)Eval("RID"), Eval("CauseName").ToString())%>
    </ItemTemplate>
 </asp:Repeater>
</select>     


<script language="javascript">
<%
    Response.Write("currSubjectId=" +  currIn +";");
 %>
    
</script>